<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>flex(容器属性)布局实战</title>
    <style>
    *{margin: 0;padding: 0;}
    .box{
        display: flex;
        width: 500px;
        height: 700px;
        background-color: #eeeeee;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
    .box .item{
       flex-basis: 230px;
       height: 150px;
       background-color: aquamarine;
       margin: 10px
    }
    </style>
</head>
<body>
    <div class="box">
        <div class="item"></div>
        <div class="item"></div>
    </div>
</body>
</html>
